# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=labwc
pkgver=0.8.1
pkgrel=0
pkgdesc="Wayland stacking compositor"
url="https://github.com/labwc/labwc"
arch="all"
license="GPL-2.0-only"
depends="xwayland"
makedepends="
	cairo-dev
	glib-dev
	libinput-dev
	libsfdo-dev
	librsvg-dev
	libxml2-dev
	meson
	pango-dev
	scdoc
	wayland-protocols
	wlroots-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/labwc/labwc/archive/$pkgver/labwc-$pkgver.tar.gz
	remove-aports-git-version.patch
	"

build() {
	abuild-meson . output -Dman-pages=enabled
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
46c60cefdaae608aa4ab198d66ed405d46291a6b47a2ba0da922240552d157c82e055ecfdecaaaf561ec6951539ecb380801bb8bfdc3eaf7d8c73ae88e41f2b5  labwc-0.8.1.tar.gz
08b1c7f45eda434400b61b8cad1d0e800c8f4ecd9e3f93fc42b10f4e8e0e599ed61a7a7e363dfa0acb45b174269278c136a244ec87940e84cc2362cdda5f5ef6  remove-aports-git-version.patch
"
